Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on SyntaxError, log error and retry with parser option recover=True #38

Closed
wants to merge 2 commits into from

Conversation

sdm7g
Copy link

@sdm7g sdm7g commented Apr 5, 2019

This change is working for me to fix #35 .

Or, would you prefer it if I moved the changes into another subClass of Client or added an option on init to turn recover retry on or off.

I am doing initial try without recover=True, because I want to log these errors to report them to the feed owner.

@sdm7g
Copy link
Author

sdm7g commented Apr 9, 2019

Withdrawing this. I'm discovering there is probably a better way to hook into lxml.etree error logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XML parse errors parsing metadata payload
1 participant